package com.cms.model;

import java.util.List;

public class TrSysRole extends BaseModel {


	private String roleName;

	private String roleDesc;
	
	private List<TrSysRoleFun>funs;
	
	public void setFuns(List<TrSysRoleFun> funs) {
		this.funs = funs;
	}
	
	public List<TrSysRoleFun> getFuns() {
		if(this.funs!=null&&!this.funs.isEmpty())
		{
		   for(TrSysRoleFun fun:funs)
		   {
			   fun.setRoleId(this.id);
		   }
		}
		return funs;
	}
	

	public String getRoleName() {
		return roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	public String getRoleDesc() {
		return roleDesc;
	}

	public void setRoleDesc(String roleDesc) {
		this.roleDesc = roleDesc;
	}

}
